<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		let that = this;
		var statusBarHeight = uni.getSystemInfo({
			success: res => {
				let statusBarHeight = res.statusBarHeight;
				that.$store.commit('setStatusBarHeight', statusBarHeight);
				that.$store.commit('setNavigationBarHeight', statusBarHeight + 44 + 1);
			}
		});
		that.$store.commit('upTipsFlag', true)
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import '~@/style/common.scss'; // “~”是 stylus-loader中的定义
</style>
